<?php
require_once 'init.php';

$master_update_posts = countThread("master_update_posts_detail.php");
$master_update_comments = countThread("master_update_comments_detail.php");

if ($master_update_comments == 0) {
    exec("php " . SCRIPT_PATH . '/master_update_comments_detail.php > /dev/null &');
}

if ($master_update_posts == 0) {
    exec("php " . SCRIPT_PATH . '/master_update_posts_detail.php > /dev/null &');
}
?>
